<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'历史'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "137">
        <div class="analyItem" v-for="(item,index) in overProjects" :key="index">
            <p class="analyItemTit tx-center" :data-title=" item.proname">{{ item.proname|slice(0,4)}}</p>
            <div class="analyItemCon col-md-4">
                <p>
                    <span class="cLightGray pr8">单号</span>
                    <span>{{ item.orderNo }}</span>
                </p>
            </div>
            <div class="analyItemCon col-md-4">
                <p>
                    <span class="cLightGray pr8">合同</span>
                    <span>{{ item.contractMoney }}</span>
                </p>
            </div>
            <div class="analyItemCon col-md-4">
                <p>
                    <span class="cLightGray pr8">发包</span>
                    <span>{{ item.publishMoney }}</span>
                </p>
            </div>
        </div>
        <!-- <div class="analyItem">
            <p class="analyItemTit tx-center">预留</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">名称</span>
                    <span>预留名称</span>
                </p>
            </div>
        </div>
        <div class="analyItem">
            <p class="analyItemTit tx-center">预留</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8">名称</span>
                    <span>预留名称</span>
                </p>
            </div>
        </div> -->
    </div>
    <div class="layerRtb-footer">
       <div class="analyItemCon">
            <p class="col-md-4">
                <span class="cLightGray pr8">个人</span>
                <span class="cRed">0.00</span>
            </p>
            <p class="col-md-4">
                <span class="cLightGray pr8">城市</span>
                <span class="cRed">46.35</span>
            </p>
                <p class="col-md-4">
                <span class="cLightGray pr8">产值</span>
                <span class="cRed">低产</span>
            </p>
        </div>
    </div>
</div>
</template>
<script>
import {
    mapGetters
} from 'vuex'
import {
    getPmUserOverProjectyUid
} from '../../Resources/Api'
export default {
    data () {
        return {
            overProjects: [] //  历史项目的信息

        }
    },
    created () {
        this.getPmUserOverProjectyUid()
    },
    methods: {
        getPmUserOverProjectyUid () {
            getPmUserOverProjectyUid({
                uid: this.leftInfo.uid
            }).then(result => {
                if (result.data.StatusCode === 0) {
                    this.overProjects = result.data.Body
                }
            }).catch(err => {
                console.log('获取项目经理完工的历史项目失败getPmUserOverProjectyUid，异常信息：' + err)
            })
        }
    },
    computed: {
        ...mapGetters(['leftInfo'])
    }
}
</script>

